package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.NetDiskTargetContentService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrapp.integration.FwAppNetDiskTargetContentClient;
import com.wicket.okrapp.integration.dto.QueryNetDiskEvaTreeListComRespDto;
import com.wicket.okrapp.integration.dto.QueryNetDiskEvaTreeListComReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffEvaObjTargetCycleDto;
import com.wicket.okrbff.common.dto.TreeNode;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrapp.integration.dto.QueryNetDiskTreeSubordinateListComRespDto;
import com.wicket.okrapp.integration.dto.QueryNetDiskTreeSubordinateListComReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffSubTargetContentDto;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "NetDiskTargetContent", tags = { "NetDiskTargetContent" })
@RestController
// @RequestMapping("/oms/netDiskTargetContent/")
public class NetDiskTargetContentController {

  @Autowired
  NetDiskTargetContentService netDiskTargetContentService;
/**
   * B3查询网盘评价树列表(管理)
   * gen by moon at 3/27/2024, 10:56:34 PM
   */
    @PostMapping("/oms/mgt/netDiskTargetContent/queryNetDiskEvaTreeList")
    @ApiOperation(value = "B3查询网盘评价树列表(管理)", response = OkrResult.class)
    public OkrResult<BffQueryNetDiskEvaTreeListRespDto> queryNetDiskEvaTreeList(@RequestBody(required=false) @Validated BffQueryNetDiskEvaTreeListReqDto reqDTO){
        return OkrResult.success(netDiskTargetContentService.queryNetDiskEvaTreeList(reqDTO));
    }
/**
   * B3查询网盘树节点下级列表(管理)
   * gen by moon at 5/11/2024, 11:58:08 PM
   */
    @PostMapping("/oms/mgt/netDiskTargetContent/queryNetDiskTreeSubordinateList")
    @ApiOperation(value = "B3查询网盘树节点下级列表(管理)", response = OkrResult.class)
    public OkrResult<BffQueryNetDiskTreeSubordinateListRespDto> queryNetDiskTreeSubordinateList(@RequestBody(required=false) @Validated BffQueryNetDiskTreeSubordinateListReqDto reqDTO){
        return OkrResult.success(netDiskTargetContentService.queryNetDiskTreeSubordinateList(reqDTO));
    }
}
